<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="include :: header('修改账户别名')"/>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-operator-edit" th:object="${accountAlias}">
            <input id="aliasId" name="aliasId" th:field="*{aliasId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">账户别名：</label>
				<div class="col-sm-8">
					<input id="accountAlias" name="accountAlias" th:field="*{accountAlias}" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">描述：</label>
				<div class="col-sm-8">
					<input id="description" name="description" th:field="*{description}" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">类型:</label>
				<div class="col-sm-8">
					<input id="type" name="type" th:field="*{type}" class="form-control" type="text" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">有效时间：</label>
				<div class="col-sm-8">
					<input id="effectiveDate" name="effectiveDate" th:field="*{effectiveDate}" class="form-control" type="date" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">失效时间：</label>
				<div class="col-sm-8">
					<input id="disableDate" name="disableDate" th:field="*{disableDate}" class="form-control" type="date" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">生效标识：</label>
				<div class="col-sm-8">
					<select id="enabledFlag" name="enabledFlag" class="form-control" th:field="*{enabledFlag}">
						<option value="Y">Y</option>
						<option value="N">N</option>
					</select>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "accountAlias";

		function submitHandler(){
	        if($.validate.form()){
	            $.operate.save(prefix + "/update", $('#form-operator-edit').serialize());
	        }
	    }
	</script>
</body>
</html>